From 083ba719d99aec77d605f02fbd03350d9a4596c1 Mon Sep 17 00:00:00 2001 From: "kfraser@localhost.localdomain" Date: Tue, 10 Apr 2007 20:00:45 +0100 Subject: [PATCH] linux: Fix an error path in save/restore code. Signed-off-by: Keir Fraser --- linux-2.6-xen-sparse/drivers/xen/core/machine_reboot.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/linux-2.6-xen-sparse/drivers/xen/core/machine_reboot.c b/linux-2.6-xen-sparse/drivers/xen/core/machine_reboot.c index aa40702eed..13f05078eb 100644 --- a/linux-2.6-xen-sparse/drivers/xen/core/machine_reboot.c +++ b/linux-2.6-xen-sparse/drivers/xen/core/machine_reboot.c @@ -209,6 +209,8 @@ int __xen_suspend(int fast_suspend) if (fast_suspend) { xenbus_suspend(); err = stop_machine_run(take_machine_down, &fast_suspend, 0); + if (err < 0) + xenbus_suspend_cancel(); } else { err = take_machine_down(&fast_suspend); } -- 2.30.2